Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a key fob for the personal vehicle menu. #158

Merged
merged 4 commits into from
Mar 13, 2019
Merged

Add a key fob for the personal vehicle menu. #158

merged 4 commits into from
Mar 13, 2019

Conversation

attributeerror
Copy link
Contributor

When options such as toggle engine, (un)lock doors, toggle lights, etc. are pressed, the player will now face towards the vehicle and press a key fob. It'll play a sound when doing so, much like the GTA:O system.

I attempted to make the key fob object exist but I couldn't be the positioning to be exactly in the right hand. If anyone can do it, they're more than welcome to.

The source & idea for this PR came from this LSPD:FR script.

@Doxylamin
Copy link
Contributor

I attempted to make the key fob object exist but I couldn't be the positioning to be exactly in the right hand. If anyone can do it, they're more than welcome to.

The source & idea for this PR came from this LSPD:FR script.

You could take the positioning from the original script, which is defined as below:

var keys = new Object("p_car_keys_01", Common.Player.Position);
 if (new Model("p_car_keys_01").IsLoaded)
   keys.AttachTo(Common.Player, Common.Player.GetBoneIndex(PedBoneId.RightHand),
new Vector3(_0.09f, 0.03f, -0.02f_), new Rotator(_-76f, 13f, 28f_));```

@attributeerror
Copy link
Contributor Author

I did attempt to use the same code but it didn't work as well as it should've. I'll take a look at the suggested edit tomorrow, thanks!

@TomGrobbe
Copy link
Owner

@attributeerror Let me know whenever you've looked into the key fob object thing, and let me know when it's time to look into merging this. If you're still planning on adding the key fob object then I'll wait for that.

@TomGrobbe TomGrobbe changed the base branch from master to development March 13, 2019 09:26
@TomGrobbe TomGrobbe merged commit b13fc5e into TomGrobbe:development Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants